package com.yuyou.fn.educational.service;

import com.yuyou.fn.educational.vo.ThirdpartyDiscountCodeVo;

import java.math.BigDecimal;
import java.util.List;

public interface IThirdpartyDiscountCodeService {

    ThirdpartyDiscountCodeVo checkCode(Long courseOrderId,BigDecimal orderPayableAmount, String discountCode, Long studentId , String studentName, String studentNo);

    ThirdpartyDiscountCodeVo query( String discountCode, Long studentId, String studentName, String studentNo ,BigDecimal orderPayableAmount ) ;

    List<ThirdpartyDiscountCodeVo> queryList(String phoneNo, String studentName, String studentNo ) ;

    void lock(Long courseOrderId, String discountCode);

    void unlock(String discountCode);

    void updateUsedStatus(Long courseOrderId, BigDecimal orderTotalAmount, String discountCode, BigDecimal discountAmount, String studentName, String studentNo, String version);
}
